var curMenu = null, zTree_Menu = null;
			var setting = {
				view: {
					showLine: false,
					showIcon: false,
					selectedMulti: false,
					dblClickExpand: false,
					addDiyDom: addDiyDom
				},
				data: {
					simpleData: {
						enable: true
					}
				},
				callback: {
					beforeClick: beforeClick
				}
			};
	
			var zNodes =[
				{ id:1, pId:0, name:"安全操作规范"},
				{ id:11, pId:1, name:"安全注意事项"},
				{ id:111, pId:11, name:"收件箱1"},
				{ id:1111, pId:111, name:"收件箱11"},
				{ id:1112, pId:111, name:"收件箱12"},
				{ id:112, pId:11, name:"收件箱2"},
				{ id:113, pId:11, name:"收件箱3"},
				{ id:114, pId:11, name:"收件箱4"},
				{ id:12, pId:1, name:"设备使用条件"},
				{ id:13, pId:1, name:"设备使用注意事项"},
				{ id:2, pId:0, name:"系统介绍"},
				{ id:21, pId:2, name:"型号名称"},
				{ id:22, pId:2, name:"用途特点"},
				{ id:23, pId:2, name:"系统功能"},
				{ id:24, pId:2, name:"系统组成"},
				{ id:25, pId:2, name:"系统部署"},
				{ id:26, pId:2, name:"主要站技指标"},
				{ id:3, pId:0, name:"工作原理"},
				{ id:31, pId:3, name:"系统工作原理"},
				{ id:32, pId:3, name:"设备工作原理"},
				{ id:33, pId:3, name:"结构特征"},
				{ id:34, pId:3, name:"安装调整"},
				{ id:35, pId:3, name:"接口特征"},
				{ id:36, pId:3, name:"供电原理"},
				{ id:4, pId:0, name:"操作使用"},
				{ id:41, pId:4, name:"操作注意事项"},
				{ id:42, pId:4, name:"操作准备及要求"},
				{ id:43, pId:4, name:"设备安装及拆卸"},
				{ id:44, pId:4, name:"软件操作说明"},
				{ id:45, pId:4, name:"操作程序"},
				{ id:46, pId:4, name:"供电原理"},
				{ id:5, pId:0, name:"维护保障"},
				{ id:51, pId:5, name:"训练保障"},
				{ id:52, pId:5, name:"系统检测"},
				{ id:53, pId:5, name:"维护和保养"},
				{ id:54, pId:5, name:"常见故障排除"},
				{ id:55, pId:5, name:"维护专业知识"},
				{ id:6, pId:0, name:"电子图纸查询"},
				{ id:61, pId:6, name:"电子图册查询"}
			];
	
			function addDiyDom(treeId, treeNode) {
				var spaceWidth = 5;
				var switchObj = $("#" + treeNode.tId + "_switch"),
				icoObj = $("#" + treeNode.tId + "_ico");
				switchObj.remove();
				icoObj.before(switchObj);
	
				if (treeNode.level > 1) {
					var spaceStr = "<span style='display: inline-block;width:" + (spaceWidth * treeNode.level)+ "px'></span>";
					switchObj.before(spaceStr);
				}
			}
	
			function beforeClick(treeId, treeNode) {
				if (treeNode.level == 0 ) {
					var zTree = $.fn.zTree.getZTreeObj("treeDemo");
					zTree.expandNode(treeNode);
					return false;
				}
				return true;
			}
	
			$(document).ready(function(){
				var treeObj = $("#treeDemo");
				$.fn.zTree.init(treeObj, setting, zNodes);
				zTree_Menu = $.fn.zTree.getZTreeObj("treeDemo");
				//curMenu = zTree_Menu.getNodes()[0].children[0].children[0];
				zTree_Menu.selectNode(curMenu);
				treeObj.addClass("showIcon");
				 //左侧导航
				 $(".ietm-home-l-tow-tr li").each(function(index){
				 	$(this).click(function(){
				 		$(".ietm-home-l-tow-tr li").removeClass("active");
				 		$(this).addClass("active");
				 		$(".associated-pub").hide();
				 		$(".associated-pub").eq(index).show();
				 	});
				 });
			});